package test.enba.mq.consumer.rabbitmq.direct;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class DirectExchangeConsumer {

  @RabbitListener(queues = "direct-queue")
  public void receiveMessage(String message) {
    System.out.println("consumer1 Received message: " + message);
  }
}
